package com.treasure.service.enums;

/**
 * 支付及资金交易相关信息枚举
 * @ClassName: PayEnum
 * @author <a href="mailto:125671254@qq.com">Pan Xinwen</a>panxinwen
 * @date 2018年6月10日 下午17:27:35
 */
public enum PayEnum {
    BUY_MEMBER(1,"购买会员","/pay/v1/notify"),
    ;
    private Integer code;
    private String body;
    private String notify;
    private PayEnum(int code, String body,String notify){
        this.code = code;
        this.body = body;
        this.notify = notify;
    }
    public Integer getCode(){return code;}
    public String getBody(){return body;}
    public String getNotify(){return notify;}

    public static PayEnum getByValue(int value) {
        for (PayEnum code : values()) {
            if (code.getCode() == value) {
                return code;
            }
        }
        return null;
    }
}
